home *** CD-ROM | disk | FTP | other *** search
- Subject: pattern accessors.
- Sent: 4/17/96 8:23 AM
- Received: 4/17/96 8:51 AM
- From: Martin Sandberg, msandber@Sigma4.com
- Reply-To: ODF-Interest@CILabs.ORG
- To: OpenDoc Development Framework Discussion List, ODF-Interest@CILabs.
-
- >When you say pattern doesn't have Get and SetRGB are you thinking about
- >the Mac call MakeRGBPat? This is something we are currently missing. You
- >can still do it by creating a Macintosh Pixpat using MakeRGBPat and
- >create a FW_CPattern using the PixPat.
-
- What I'd really like to do is get at the FW_PlatformColorPattern like I can
- get at the color components of an FW_CColor. I really don't want to get
- platform specific if I can avoid it.
-
- Something like:
- FW_PlatformColorPattern* GetPattern()
- void SetPattern(PlatformColorPattern *thePattern)
-
- would be NICE! Again, the FW_CColorPatternRep has some accessors, but
- they're _private_!:
-
- private:
- void MakePixelPattern(const FW_PixelPattern& pixels, short
- nbColors, const FW_CColor* colorTable);
-
- void GetPixelData(FW_PixelPattern& pixData) const;
- void SetPixelData(const FW_PixelPattern& pixData);
-
- unsigned short GetColorTable(FW_CColor*& colors) const;
-
- Thanx again for the quick response!
-
- Martin, Bill & the Sigma 4 gang.
-
-